package com.ofek.eventos.db.datatypes.helptypes;

import java.io.Serializable;

import com.ofek.applicationbase.forms.FormField;
import com.ofek.base.db.DataField;
import com.ofek.base.db.DataTypeClass;

@DataTypeClass
public class UserInfo implements Serializable {
	public UserInfo(final int uid, final String userId) {
		this.uid = uid;
		this.userId = userId;
	}
	@DataField(isKey=true,isAutoIncrement=true,isNullable=false)
	@FormField
	public int uid;
	@DataField(isUnique=true)
	@FormField
	public String userId;
	public UserInfo() {
		// TODO Auto-generated constructor stub
	}
	public UserInfo(final int uid_owner) {
		uid = uid_owner;
	}
	public UserInfo(final String uid) {
		userId = uid;
	}
}